<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="jquery.js"></script>
</head>

<body>
        <button id="b1">btn1</button> <button id="b2">btn1</button>
    <div id="div1">efwfwefwef</div>
    <script>
        $(function () {
            $("#b1").click(function () {
                $("#div1").toggle();p
            });
        });
        $(document).ready(function(){
            $("#b2").click(function () {
                $("#div1").text("dsklfklasklfklsd");
            });
        });
    </script>
</body>

</html>